var initFoodOrderItemInfoSearchPage = function(){

};

var getFoodOrderItemInfoSearchParams = function(){
	var foodorderiteminfoBean = {};
	var temp;
	temp = jQuery('#orderIdSearcher').val();
	if(temp){
		foodorderiteminfoBean.orderId = temp;
	}
	temp = jQuery('#timeBegin').val();
	if(temp){
		foodorderiteminfoBean.timeBegin =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#timeEnd').val();
	if(temp){
		foodorderiteminfoBean.timeEnd =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#stateSearcher').val();
	if(temp){
		foodorderiteminfoBean.state = temp;
	}
	temp = jQuery('#descSearcher').val();
	if(temp){
		foodorderiteminfoBean.desc = temp;
	}
	return foodorderiteminfoBean;
}

jQuery(function(){
	initFoodOrderItemInfoSearchPage();
	jQuery('#searchFoodOrderItemInfo').click(function(){
		foodorderiteminfoManager.loadServerData(getFoodOrderItemInfoSearchParams());
	});
});


